import request from '@/utils/request'

// 查询合同列表
export function listContract(query) {
  return request({
    url: '/TContractManagement/TContractManagement/list',
    method: 'get',
    params: query
  })
}

// 查询合同详细
export function getContract(id) {
  return request({
    url: '/TContractManagement/TContractManagement/' + id,
    method: 'get'
  })
}

// 新增合同
export function addContract(data) {
  return request({
    url: '/TContractManagement/TContractManagement',
    method: 'post',
    data: data
  })
}

// 修改合同
export function updateContract(data) {
  return request({
    url: '/TContractManagement/TContractManagement',
    method: 'put',
    data: data
  })
}

// 删除合同
export function delContract(id) {
  return request({
    url: '/TContractManagement/TContractManagement/' + id,
    method: 'delete'
  })
}

// 查询结算列表
export function AccountsList1(query) {
    return request({
      url: "/erp/settleAccounts/list1",
      method: "get",
      params: query
    })
  }
